﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Contrib.VimeoField.Settings
{
    public class VimeoFieldSettings
    {
        // maps to url attributes used to embed video        
        // based on http://developer.vimeo.com/player/embedding

        private const string DefaultColorValue = "00adef";
        private const int DefaultWidthValue = 640;
        private const int DefaultHeightValue = 360;

        //color default 00adef
        public string ControlsColor { get; set; }

        //title default 1
        public bool ShowTitle { get; set; }

        // byline default 1
        public bool ShowByline { get; set; }

        //portrait default 1
        public bool ShowUserPortrait { get; set; }

        //autoplay default 0
        public bool Autoplay { get; set; }

        // loop default 0
        public bool Loop { get; set; }

        // api default 1
        public bool JavascriptApiEnable { get; set; }

        // javascript player id 
        public string PlayerId { get; set; }

        // width of this field if none specified per instance
        public int DefaultWidth { get; set; }
        // height of this field if none specificied per instance
        public int DefaultHeight { get; set; }
    

        public VimeoFieldSettings()
        {
            ControlsColor = DefaultColorValue;
            ShowTitle = true;
            ShowByline = true;
            ShowUserPortrait = true;
            Autoplay = false;
            Loop = false;
            JavascriptApiEnable = true;
            PlayerId = "";
            DefaultWidth = DefaultWidthValue;
            DefaultHeight = DefaultHeightValue;
        }
    }

}